package com.vecspace.core.support;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**获取application.properties中定义的变量
 * @author wanghua
 */
@Component
public class AppProperties {

	private static String copyrightInfo;
	

	public String getCopyrightInfo() {
		return copyrightInfo;
	}

	@Value("${APP.web.copyright: }")
	public void setCopyrightInfo(String copyrightInfo) {
		AppProperties.copyrightInfo = copyrightInfo;
	}

	/**
	 * 获取版权信息（来源于属性文件）
	 * @return 
	 * @author wanghua
	 */
	public static String getCopyright(){
		return copyrightInfo;
	}
	
	//---------------------------------------------------------------
	private static String logoImg;	
	public static String getLogoImg() {
		return logoImg;
	}

	@Value("${APP.web.logo:./images/logo.png}")
	public void setLogoImg(String logoImg) {
		AppProperties.logoImg = logoImg;
	}

	public String getLogo(){
		return logoImg;
	}
	
	//------------------------------------------------------------------
	private static String tempExportFilePath;

	public String getTempExportFilePath() {
		return tempExportFilePath;
	}

	@Value("${tempExportPath:./ExportFiles}")
	public void setTempExportFilePath(String tempExportPath) {
		AppProperties.tempExportFilePath = tempExportPath;
	}
	public static String getTempExportPath() {
		return tempExportFilePath;
	}
}

